package org.dromara.business.modules.demands.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dromara.business.modules.demands.domain.BuDemands;
import org.dromara.business.modules.demands.domain.vo.BuDemandsVo;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 需求信息Mapper接口
 *
 * @author ckk
 * @date 2025-10-20
 */
@Mapper
public interface BuDemandsMapper extends BaseMapperPlus<BuDemands, BuDemandsVo> {

    @DataPermission({@DataColumn(key = "userName", value = "create_by")})
    default Page<BuDemandsVo> queryPageList(Page<BuDemands> page, @Param(Constants.WRAPPER) Wrapper<BuDemands> queryWrapper) {
        return this.selectVoPage(page, queryWrapper);
    }
}
